package com.mhwx.mhlive.retrofit;

import com.mhwx.mhlive.bean.User;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * <p>Title: cn.mvp.retrofit</p>
 *
 * @author : Guol
 * @version 1.0
 * @time 2017/5/5
 * Description:
 */

public interface ApiService {
    /**
     * 获取数据
     *
     * @param cityname
     * @param key
     * @return
     */
    @GET("/weather/index")
    Observable<User> getWeatherData(@Query("format") String format,
                                    @Query("cityname") String cityname,
                                    @Query("key") String key);

    
}
